home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / mxcode / fmplay11 / test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-09  |  495 b   |  26 lines

  1. #include<stdlib.h>
  2. #include<stdio.h>
  3. #include<string.h>
  4. #include<mem.h>
  5. #include<math.h>
  6. #include<dos.h>
  7. #include<conio.h>
  8. #include"adlib.h"
  9. #include"fmplay.h"
  10.  
  11. extern unsigned _heaplen = 30000; /* this is a limit on song size */
  12. extern unsigned _stklen  = 512;
  13.  
  14. void main(void)
  15. {BYTE *song;
  16.  song=FMLoadSong("canon2.scr");
  17.  if (!song)
  18.     {printf("Couldn't load song.\n");
  19.     exit(-1);
  20.     }
  21.  FMInstallISR(1);
  22.  FMStartSong(song,3,30);
  23.  keep(0, (_SS + ((_SP+2)/16) - _psp));
  24. }
  25.  
  26.